package com.itsm.example.incident.flow.condition;

import com.itsm.example.statemachine.bo.ItsmContext;
import com.itsm.statemachine.Condition;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@RequiredArgsConstructor
public class IncidentCondition implements Condition<ItsmContext> {

    @Override
    public boolean isSatisfied(ItsmContext context) {
        log.info("incident condition executed");
        return true;
    }
}
